%!TEX program = xelatex

% Ignore the next line...
% \documentclass[UTF8,fontset=none,leqno]{ctexart}

% Make sure you have installed the fonts I use. If not, just remember to
% make some modifications.
\documentclass[UTF8,fontset=none,twoside,leqno,a4paper]{ctexart}
% \documentclass[UTF8,twoside,leqno]{ctexart}
\usepackage{amssymb,amsmath}
% Add hyperlinks to the table of contents
\usepackage[hidelinks]{hyperref}
\usepackage{pdfpages}

% \usepackage{lipsum}

% Enable unicode-math? If this is enabled, many font packages will not work.
% However, if this is enabled, the symbols look better.
\usepackage{unicode-math}
\setmathfont{Latin Modern Math}
\setmathfont{TeX Gyre Termes Math}[range=bb/{latin,Latin}]

\providecommand{\newsection}{}
\renewcommand{\newsection}{\cleardoublepage \thispagestyle{empty}}
% \renewcommand{\newsection}{\cleardoublepage \thispagestyle{plain}}

\input{format/style}

\input{format/commandsUsingAt}

% ============================================================
% The document begins.
% ============================================================

\begin{document}

% \pagestyle{empty}

\pagestyle{empty}
\includepdf{res/cover.pdf}
\ \
\clearpage

\title{}
\date{}
\author{}
\ctexset{today=old}
\pagestyle{plain}
\pagenumbering{roman}
\renewcommand{\contentsname}{Table of Contents}
\renewcommand{\abstractname}{Abstract}

\pagestyle{plain}
\thispagestyle{empty}
\tableofcontents

\newsection
\input{contents/preface}

\newsection
\pagestyle{headings}
\setcounter{page}{1}
\pagenumbering{arabic}
\input{contents/poly}

\cleardoublepage
\thispagestyle{empty}

\end{document}
